import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';

import { GlobalSettingService } from '../services/global-setting.service';

@Injectable()
export class AdvertiseService {

  constructor(private http: HttpClient, private globalSetting: GlobalSettingService) { }

  public getList(): any {
    return this.http.get(this.globalSetting.getLibraryWebApiRootUrl() + 'advert/list');
  }

}
